-- GENERATED SPELL FOR [Blighted Surge] --


function spell0_8519(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(14099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8519', 578, 1)
end

function spell1_8519(pUnit, Event) --@Toxic Bolt,n/a--
pUnit:FullCastSpellOnTarget(16554,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8519', 2500, 1)
end

function Sorts_8519(pUnit, Event)
local choix_sorts_8519 = math.random(0, 1)
if choix_sorts_8519 == 0 then
pUnit:RegisterEvent('spell0_8519', 1, 1)
end
if choix_sorts_8519 == 1 then
pUnit:RegisterEvent('spell1_8519', 1, 1)
end
end

function mob8519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8519', math.random(1500, 3000), 1)
end

function mob8519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8519, 1, 'mob8519_Action')
RegisterUnitEvent(8519, 2, 'mob8519_Leave')
RegisterUnitEvent(8519, 3, 'mob8519_Kill')
RegisterUnitEvent(8519, 4, 'mob8519_Die')
